home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2002 November / SGI IRIX 6.5 Applications 2002 November.iso / dev / java2v131_02_dev.idb / usr / java2v131_02 / src.jar / src / launcher / java.h < prev   
Encoding:
C/C++ Source or Header  |  2002-06-12  |  1.3 KB  |  60 lines

  1. /*
  2.  * @(#)java.h    1.15 00/07/19
  3.  *
  4.  * Copyright 2000 Sun Microsystems, Inc. All rights reserved.
  5.  * Copyright 2000 Sun Microsystems, Inc. Tous droits rΘservΘs.
  6.  *
  7.  * This software is the proprietary information of Sun Microsystems, Inc.
  8.  * Use is subject to license terms.
  9.  */
  10.  
  11. #ifndef _JAVA_H_
  12. #define _JAVA_H_
  13.  
  14. /*
  15.  * Get system specific defines.
  16.  */
  17. #include "jni.h"
  18. #include "java_md.h"
  19.  
  20. /*
  21.  * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
  22.  */
  23. typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
  24. typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
  25.  
  26. typedef struct {
  27.     CreateJavaVM_t CreateJavaVM;
  28.     GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
  29. } InvocationFunctions;
  30.  
  31. /*
  32.  * Protoypes for launcher functions in the system specific java_md.c.
  33.  */
  34. jboolean
  35. GetJVMPath(const char *jrepath, const char *jvmtype,
  36.        char *jvmpath, jint jvmpathsize);
  37.  
  38. const char *
  39. ReadJVMLink(const char *jrepath, const char *jvmtype,
  40.         char* knownVMs[], int knownVMsCount);
  41.  
  42. jboolean
  43. GetJREPath(char *path, jint pathsize);
  44.  
  45. jboolean
  46. LoadJavaVM(const char *jvmpath, InvocationFunctions *ifn);
  47.  
  48. void
  49. GetXUsagePath(char *buf, jint bufsize);
  50.  
  51. jboolean
  52. GetApplicationHome(char *buf, jint bufsize);
  53.  
  54. /*
  55.  * Make launcher spit debug output.
  56.  */
  57. extern jboolean debug;
  58.  
  59. #endif /* _JAVA_H_ */
  60.